package com.dc.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统角色-返回数据模型
 */
@Data
@ApiModel
public class SysRoleVO implements Serializable {

    private static final long serialVersionUID = -1760765822851966681L;


    @ApiModelProperty(value = "角色id", example = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "角色名称", example = "roleName")
    private String roleName;

    @ApiModelProperty(value = "描述", example = "description")
    private String description;

    private Date createTime;

    private Date updateTime;

    /**
     * 数据范围（1：所有数据权限； 5.仅本人数据权限）
     */
    private String dataScope;
}
